<!-- <template>
  <div id="app">
    <img src="./assets/logo.png">
    <router-view/>
  </div>
</template> -->
<template>
  <div id="app">
    <h2>Todos:</h2>
    <ol>
      <li v-for="todo in todos">
        <label>
          <input type="checkbox" v-on:change="toggle(todo)" v-bind:checked="todo.done">
          <del v-if="todo.done">
            {{ todo.text }}
          </del>
          <span v-else>
          {{ todo.text }}
        </span>
        </label>
      </li>
    </ol>
    <to-do-list></to-do-list>
  </div>
</template>
<script>
export default {
  name: 'App',
  data() {
    return {
      todos: [
        { text: 'Learn JavaScript', done: false },
        { text: 'Learn Vue', done: false },
        { text: 'Play around in JSFiddle', done: true },
        { text: 'Build something awesome', done: true },
      ],
    };
  },
};

</script>
<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

</style>
